package com.rui.cn.provider.repository.system;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.rui.cn.entity.system.SysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户 Mapper 接口
 * </p>
 *
 * @author zhang123
 * @since 2018-01-14
 */
public interface SysUserDao extends BaseMapper<SysUser> {
    List<SysUser> selectUserList(Pagination page, @Param("state") Integer state);

    List<SysUser> getUserList(@Param("pagination") Page pagination, @Param("search")String search, @Param("sortBy") String sortBy, @Param("order")String order);

    SysUser getUserInfo(@Param("id")Integer id);

    int insertMyUser(SysUser sysUser);
}
